var t = getApp(), a = wx.cloud.database({
    env: "emojimaker-release-7xvun"
});

Page({
    data: {
        ad: {},
        appset: {},
        wxminiset: [
            {appid:'wx521e3f82f19f8803',logo:'/images/basicprofile.png',name:'p图修图工具'}
        ],
        moresettings: {
            showWx: !1,
            showAd: !0,
            showGoods: !1
        },
        wxgroup: "https://656d-emojimaker-release-7xvun-1301707257.tcb.qcloud.la/wechatgroup.jpg",
        extraData: {
            id: "104315"
        }
    },
    goEmojilList: function() {
        wx.navigateTo({
            url: "/pages/emojiList/emojiList"
        });
    },
    getCode: function() {
        wx.showToast({
            title: "长按图片保存",
            icon: "none"
        }), wx.previewImage({
            urls: [ "/images/wxcode.png" ]
        });
    },
    onLoad: function(o) {
        this.setData({
            ad: t.globalData.ad,
            appset: t.globalData.appset,
            appid: t.globalData.appid
        });
        var e = this;
        a.collection("moresettings").doc("db9f2d6c5ef7523f007581c10e4768de").get({
            success: function(t) {
                e.setData({
                    moresettings: t.data
                });
            }
        });
    },
    updatelog: function() {
        wx.navigateTo({
            url: "/pages/log/log"
        });
    },
    copyurl: function(t) {
        wx.setClipboardData({
            data: t.currentTarget.dataset.url,
            success: function(t) {
                wx.showToast({
                    title: "下载地址复制成功",
                    icon: "none"
                });
            }
        });
    },
    wechatgroup: function() {
        wx.showToast({
            title: "长按图片保存",
            icon: "none"
        }), wx.previewImage({
            urls: [ this.data.wxgroup ]
        });
    },
    copyname: function(t) {
        wx.setClipboardData({
            data: t.currentTarget.dataset.name,
            success: function(t) {
                wx.showToast({
                    title: "APP名称复制成功",
                    icon: "none"
                });
            }
        });
    },
    goToTxc: function() {
        wx.navigateToMiniProgram({
            appId: "wx8abaf00ee8c3202e",
            extraData: this.data.extraData
        });
    },
    goToGoods: function() {
        wx.navigateTo({
            url: "/pages/goods/goods"
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            title: "一键制作图片、文字、GIF表情包",
            path: "pages/emotionEdit/emotionEdit",
            imageUrl: "https://ishare20.net/apps/wxmini/wxb95c179e268861ca_share1.png"
        };
    }
});